<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.domain.ZhongLei,java.util.ArrayList,com.domain.*"%>

<%
YongHu yonghu=(YongHu)session.getAttribute("yonghu");

	
ArrayList<DingDan> houtaidingdan=(ArrayList<DingDan>)session.getAttribute("houtaidingdan");
DingDan dingdan;

if(yonghu==null || !yonghu.getQuanxian().equals("guanliyuan"))
{
	request.getRequestDispatcher("guanliyuandenglu.jsp").forward(request, response);
}
if(houtaidingdan==null)
{
	request.getRequestDispatcher("Huoqudingdan").forward(request, response);
}
%>

<html>
	<head>
		<style>A{text-decoration: NONE} </style>
		<title>订单中心</title>
	</head>
	<body >
	<table width="90%" align="center"  bgcolor="#d0eed8" border="1">
		<tr height="200">
			<td align="center"><font size="7"><a href="houtaishouye.jsp">返回首页</a></font></td>			
		</tr>
	</table>

	

	<table align="center" width="90%" bgcolor="#d0eed8" border="1">	
		<colgroup width="15%" span="6">
		<tr>
			<th>图片</th>
			<th>名字</th>
			<th>时间</th>
			<th>金额</th>
			<th>用户</th>
			<th>操作</th>
		</tr>
	</table>

	 
	 
	 
	 <%
	for(int i=houtaidingdan.size()-1;i>=0;i--)
	{
%>
		<table align="center" width="90%" bgcolor="#d0eed8" cellspacing="1" border="1">	
			<colgroup width="15%" span="6">		
			<tr align="center">
<%
		if(houtaidingdan.get(i).getTupian()==null)
		{
%>	
				<td>暂无图片</td>		
<%
		}
		else
		{
%>
				<td><img src="./images/<%=houtaidingdan.get(i).getTupian() %>.jpg"  width="100%" ></td>			
<%
		}
%>
				<td><%=houtaidingdan.get(i).getMingzi() %></td> 
				<td><%=houtaidingdan.get(i).getShijian() %></td>
				<td><%=houtaidingdan.get(i).getZongjia() %></td>
				<td><%=houtaidingdan.get(i).getYonghuming() %></td>
				<td><a href="Dingdanxiangqing?dingdanbianhao=<%=houtaidingdan.get(i).getBianhao() %>">查看详情</a></td>
			</tr>
		</table>
<%	
	}
%>		
	
	
	 
	
	
		
  </body>
</html>
